﻿

using System;

namespace JetnettAutoUpdater
{
    public class AppConfigSettings
    {
        private string _localDirectory;
        public string LocalDirectory 
        { 
            get
            {
                return _localDirectory.Replace("[LocalAppDirectory]",
                                          System.Environment.GetFolderPath(
                                              Environment.SpecialFolder.LocalApplicationData));
            }
            set { _localDirectory = value; }
        }

        private string _executeFile;
        public string ExecuteFile
        { 
            get
            {
                return _executeFile.Replace("[LocalAppDirectory]",
                                          System.Environment.GetFolderPath(
                                              Environment.SpecialFolder.LocalApplicationData));
            }
            set { _executeFile = value; }
        }
        private string _iconPath;
        public string IconPath
        {
            get
            {
                return _iconPath.Replace("[LocalAppDirectory]",
                                          System.Environment.GetFolderPath(
                                              Environment.SpecialFolder.LocalApplicationData));
            }
            set { _iconPath = value; }
        }

        public string StartMenuFolder { get; set; }
        public string RemoteURL { get; set; }
        public string Name { get; set; }
        public string Version { get; set; }
    }
}
